#define _CRT_SECURE_NO_WARNINGS

#include "Queue.h"

void test()
{
	Queue q;

	QueueInit(&q);

	QueuePush(&q, 1);
	QueuePush(&q, 2);
	QueuePush(&q, 3);
	QueuePush(&q, 4);
	QueuePush(&q, 5);
	QueuePrint(&q);

	printf("%d\n", QueueHead(&q));
	printf("%d\n", QueueTail(&q));

	QueuePop(&q);
	QueuePrint(&q);
	QueuePop(&q);
	QueuePrint(&q);
	QueuePop(&q);
	QueuePrint(&q);
	QueuePop(&q);
	QueuePrint(&q);
	QueuePop(&q);
	QueuePrint(&q);

	QueueDestroy(&q);
}

int main()
{
	test();

	return 0;
}